﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace WITM.DAL
{
    public interface ISpendingItemRepository
    {
        IEnumerable<SpendingItems> GetAll();
        IEnumerable<SpendingItems> Find(Expression<Func<SpendingItems, bool>> where);
        IEnumerable<SpendingItems> Find(Expression<Func<SpendingItems, bool>> where, bool fullPath);
        SpendingItems First(Expression<Func<SpendingItems, bool>> where);

        void Add(SpendingItems item);
        void Delete(SpendingItems item);
        void Attach(SpendingItems item);
    }
}
